package com.atguigu.eduservice.controller;

import com.atguigu.commonutil.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/user")
public class LoginController {

    @PostMapping("login")
    public R login() {
        return R.ok().data("token", "admin");
    }

    @GetMapping("info")
    public R getInfo() {
        return R.ok().data("roles", "[admin]").data("name", "JoKer").data("avatar", "https://great.wzznft.com/i/2023/02/03/p72f0o.jpg");
    }
}
